//
//  MyKeCHengTableViewCell.m
//  ZhiBoYuan
//
//  Created by coder_di on 2018/4/17.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "MyKeCHengTableViewCell.h"

@implementation MyKeCHengTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //添加UI
        [self addUI];
    }
    return self;
}

-(void)addUI{
    self.imageVC = [[UIImageView alloc]initWithFrame:CGRectMake(20 * KscreenWidth, 20 * KscreenHeight, 120 * KscreenWidth, 80 * KscreenHeight)];
    self.imageVC.layer.masksToBounds = YES;
//    self.imageVC.userInteractionEnabled = YES;
    self.imageVC.contentMode = UIViewContentModeScaleAspectFill;
    self.imageVC.clipsToBounds = YES;
//    self.imageVC.layer.cornerRadius = 22.5 * KscreenWidth;
    [self.imageVC setImage:[UIImage imageNamed:@"0009"]];
//    self.imageVC.backgroundColor = [UIColor yellowColor];
    [self.contentView addSubview:self.imageVC];

    
    _nameLable  = [[UILabel alloc]initWithFrame:CGRectMake(160 * KscreenWidth, 20 * KscreenHeight, ScreenWidth - 170 * KscreenWidth, 20 * KscreenHeight)];
    _nameLable.font = [UIFont systemFontOfSize:15 * KscreenWidth];
    _nameLable.numberOfLines = 2;
    [self.contentView addSubview:self.nameLable];
    
//    self.keshiLable = [[UILabel alloc]initWithFrame:CGRectMake(160 * KscreenWidth, 0 * KscreenHeight, ScreenWidth - 200 * KscreenWidth, 15 * KscreenHeight)];
//    self.keshiLable.text = @"课时：18";
//    self.keshiLable.font = [UIFont systemFontOfSize:14 * KscreenWidth];
//    self.keshiLable.textColor = hui4Color;
//    [self.contentView addSubview:self.keshiLable];

    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
